-# Deprecated, use Google Tag Manager instead
:plain
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '#{APP_CONFIG.google_analytics_key}']);
  _gaq.push(['_setDomainName', '.#{PublicSuffix.parse(request.host).domain}']);
  _gaq.push(
  ['_addIgnoredOrganic', 'sharetribe'],
  ['_addIgnoredOrganic', 'sharetribe.com'],
  ['_addIgnoredOrganic', 'www.sharetribe.com'],
  ['_addIgnoredOrganic', 'kassi'],
  ['_addIgnoredOrganic', 'share tribe'],
  ['_addIgnoredOrganic', 'kassi.eu'],
  ['_setAllowLinker', true],
  ['_trackPageview'],
  ['_trackPageLoadTime']
  );

  (function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

  onDocumentReady(function() {
    ST.analytics.initLegacyGoogleAnalytic(_gaq);
  });

